package com.huaxiafinance.management.mapper;

import com.huaxiafinance.management.model.YfqImg;
import com.huaxiafinance.management.model.YfqImgExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface YfqImgMapper {
    int countByExample(YfqImgExample example);

    int deleteByExample(YfqImgExample example);

    int deleteByPrimaryKey(String id);

    int insert(YfqImg record);

    int insertSelective(YfqImg record);

    List<YfqImg> selectByExample(YfqImgExample example);

    YfqImg selectByPrimaryKey(String id);

    int updateByExampleSelective(@Param("record") YfqImg record, @Param("example") YfqImgExample example);

    int updateByExample(@Param("record") YfqImg record, @Param("example") YfqImgExample example);

    int updateByPrimaryKeySelective(YfqImg record);

    int updateByPrimaryKey(YfqImg record);

    List<YfqImg> selectHeadByCompanyId(String id);

    List<YfqImg> selectLisenceByCompanyId(String id);

    List<YfqImg> selectHonorByCompanyId(String id);

    List<YfqImg> queryUserImg(@Param("orderNo")String orderNo);

    /**
     * 通过type==15来查出活动banner
     * @return
     */
    YfqImg selectByActivityBanner();

    /**
     * 修改活动banner入口
     * @param url
     * @return
     */
    int updateBannerImg(@Param("url") String url);

    List<String> selectPackageImgs(@Param("typeParam")String typeParam,@Param("type")Integer type);

    int deletePackageImgs(@Param("typeParam")String  typeParam);
}